package com.alibaba.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

import java.util.DuplicateFormatFlagsException;


@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {

    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务器异常"),

    //登录模块
    LOGIN_ERROR(500210, "用户名或密码不正确"),
    MOBILE_ERROR(500211, "手机号码格式不正确"),
    //异常处理
    BIND_ERROR(500110, "参数校验异常"),
    NO_GOODS_INFO(500110, "无商品信息数据"),
    EMPTY_STOCK(550550, "库存为空"),
    MOBILE_NOT_EXIST(500213, "手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214, "密码更新失败"),
    SESSION_ERROR(110110, "会话错误"),
    REPEATE_ERROR(550600, "抢购失败"),
    ORDER_NOT_EXIST(550112, "订单不存在"),
    REQUEST_ILLEGAL(255255, "违规路径异常"),
    ERROR_CAPTCHA(550530, "验证码验证失败"),
    ACCESS_LIMIT_REACHED(550400, "访问限制");
    private final Integer code;
    private final String message;

}
